package com.baitiaojun.video.mapper;

import com.baitiaojun.api.domain.video.VideoTag;
import org.apache.ibatis.annotations.Param;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

public interface VideoTagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(VideoTag record);

    int insertSelective(VideoTag record);

    VideoTag selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(VideoTag record);

    int updateByPrimaryKey(VideoTag record);

    int batchInsertVideoTags(@Param("videoTags") List<VideoTag> videoTags);

    Set<Long> selectTagIdsByVideoId(Long videoId);

    int batchDeleteVideoTags(Long videoId);
}